 export default function(state,action){
	switch(action.type){
		case "ADD_ITEM": 
		var newList = action.content.datas[0].adv_list.item.map(function(index){
                return index;
          })
		var calei = action.content.datas
		var arr =[calei[2],calei[3],calei[4],calei[5],calei[6],calei[7]]
		//console.log(state)
			return {
				homebanner :newList,
				homeimg : action.content.datas[1].home1.image,
				homegoods:  arr
			}
			break;
			default : 
            return state;
            break;
	}
}

 